import request from '@/utils/request'

// 查询物资库存列表(分页)
export function GetStockList(data) {
	return request({
		url: 'pda/wm/wmstock/list',
		headers: {
			isToken: true
		},
		method: 'post',
		data: data
	})
}

// 获取库存记录详细信息
export function GetStockInfo(materialStockId) {
	return request({
		url: 'pda/wm/wmstock/'+materialStockId,
		headers: {
			isToken: true
		},
		method: 'get'
	})
}

//根据库存ID查询库存批次号
export function GetUniqueCodeByStorageId(storageId) {
	return request({
		url: 'pda/wm/wmstock/uniqueCode/'+storageId,
		headers: {
			isToken: true
		},
		method: 'get'
	})
}